<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="java.util.GregorianCalendar"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="org.json.simple.JSONArray"%>
<%@page import="java.util.Arrays"%>
<%@page import="dongbu.bo.overtime.OverTimeBO"%>
<%@page import="dongbu.vo.overtime.OverTimeChild"%>
<%@page import="java.net.URLEncoder"%>
<%
	request.setCharacterEncoding("UTF-8");
	
	String childNames[] = request.getParameterValues("childname[]");
	
	OverTimeBO bo = new OverTimeBO();
	for (int i = 0; i < childNames.length; i++) {
		OverTimeChild child = new OverTimeChild();
		child.setName(childNames[i]);
		bo.createOverTimeChild(child);
	}

	String childString = "";
	for(int i = 0 ; i < childNames.length ; i++){
		childString += "," + childNames[i];
	}
	
	response.sendRedirect("inputtime.jsp?childList=" + URLEncoder.encode(childString.substring(1)));
%>